﻿<%@ Page Language="C#" MasterPageFile="~/MainMasterPage.master" AutoEventWireup="true"
    CodeFile="Detail.aspx.cs" Inherits="Product_Detail" Title="Untitled Page" %>

<%@ Register Src="Control/Category.ascx" TagName="Category" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftHolder" runat="Server">
    <uc1:Category ID="Category1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentHolder" runat="Server">
    <div class="detail">
        <% if (p != null)
           { %>
        <img src='<%= !string.IsNullOrEmpty(p.Photo) ? p.Photo : "/images/no-image.png" %>?w=100' />
        <div class="info">
            <p class="title">
                <%= p.ProductName %><span class="code">-
                    <%= p.ProductCode %></span>
            </p>
            <p>
                <%= p.Info %>
            </p>
        </div>
        <p>
            Giá : <span>
                <%= WB.Library.FNumber.FormatNumber(p.Price) %>
                vnd</span>
        </p>
        <p>
            <%= p.Contents %>
        </p>
        <%} %>
    </div>
</asp:Content>
